package edu.zust.zw.shop.db.dao.domain;

import java.util.ArrayList;
import java.util.List;

public class ShopExpWareDomainExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShopExpWareDomainExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExpWareIdIsNull() {
            addCriterion("exp_ware_id is null");
            return (Criteria) this;
        }

        public Criteria andExpWareIdIsNotNull() {
            addCriterion("exp_ware_id is not null");
            return (Criteria) this;
        }

        public Criteria andExpWareIdEqualTo(String value) {
            addCriterion("exp_ware_id =", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdNotEqualTo(String value) {
            addCriterion("exp_ware_id <>", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdGreaterThan(String value) {
            addCriterion("exp_ware_id >", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdGreaterThanOrEqualTo(String value) {
            addCriterion("exp_ware_id >=", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdLessThan(String value) {
            addCriterion("exp_ware_id <", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdLessThanOrEqualTo(String value) {
            addCriterion("exp_ware_id <=", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdLike(String value) {
            addCriterion("exp_ware_id like", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdNotLike(String value) {
            addCriterion("exp_ware_id not like", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdIn(List<String> values) {
            addCriterion("exp_ware_id in", values, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdNotIn(List<String> values) {
            addCriterion("exp_ware_id not in", values, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdBetween(String value1, String value2) {
            addCriterion("exp_ware_id between", value1, value2, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdNotBetween(String value1, String value2) {
            addCriterion("exp_ware_id not between", value1, value2, "expWareId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdIsNull() {
            addCriterion("ware_class_id is null");
            return (Criteria) this;
        }

        public Criteria andWareClassIdIsNotNull() {
            addCriterion("ware_class_id is not null");
            return (Criteria) this;
        }

        public Criteria andWareClassIdEqualTo(String value) {
            addCriterion("ware_class_id =", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdNotEqualTo(String value) {
            addCriterion("ware_class_id <>", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdGreaterThan(String value) {
            addCriterion("ware_class_id >", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdGreaterThanOrEqualTo(String value) {
            addCriterion("ware_class_id >=", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdLessThan(String value) {
            addCriterion("ware_class_id <", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdLessThanOrEqualTo(String value) {
            addCriterion("ware_class_id <=", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdLike(String value) {
            addCriterion("ware_class_id like", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdNotLike(String value) {
            addCriterion("ware_class_id not like", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdIn(List<String> values) {
            addCriterion("ware_class_id in", values, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdNotIn(List<String> values) {
            addCriterion("ware_class_id not in", values, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdBetween(String value1, String value2) {
            addCriterion("ware_class_id between", value1, value2, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdNotBetween(String value1, String value2) {
            addCriterion("ware_class_id not between", value1, value2, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailIsNull() {
            addCriterion("exp_ware_detail is null");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailIsNotNull() {
            addCriterion("exp_ware_detail is not null");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailEqualTo(String value) {
            addCriterion("exp_ware_detail =", value, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailNotEqualTo(String value) {
            addCriterion("exp_ware_detail <>", value, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailGreaterThan(String value) {
            addCriterion("exp_ware_detail >", value, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailGreaterThanOrEqualTo(String value) {
            addCriterion("exp_ware_detail >=", value, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailLessThan(String value) {
            addCriterion("exp_ware_detail <", value, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailLessThanOrEqualTo(String value) {
            addCriterion("exp_ware_detail <=", value, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailLike(String value) {
            addCriterion("exp_ware_detail like", value, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailNotLike(String value) {
            addCriterion("exp_ware_detail not like", value, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailIn(List<String> values) {
            addCriterion("exp_ware_detail in", values, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailNotIn(List<String> values) {
            addCriterion("exp_ware_detail not in", values, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailBetween(String value1, String value2) {
            addCriterion("exp_ware_detail between", value1, value2, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andExpWareDetailNotBetween(String value1, String value2) {
            addCriterion("exp_ware_detail not between", value1, value2, "expWareDetail");
            return (Criteria) this;
        }

        public Criteria andCreateAtIsNull() {
            addCriterion("create_at is null");
            return (Criteria) this;
        }

        public Criteria andCreateAtIsNotNull() {
            addCriterion("create_at is not null");
            return (Criteria) this;
        }

        public Criteria andCreateAtEqualTo(Long value) {
            addCriterion("create_at =", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtNotEqualTo(Long value) {
            addCriterion("create_at <>", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtGreaterThan(Long value) {
            addCriterion("create_at >", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtGreaterThanOrEqualTo(Long value) {
            addCriterion("create_at >=", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtLessThan(Long value) {
            addCriterion("create_at <", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtLessThanOrEqualTo(Long value) {
            addCriterion("create_at <=", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtIn(List<Long> values) {
            addCriterion("create_at in", values, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtNotIn(List<Long> values) {
            addCriterion("create_at not in", values, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtBetween(Long value1, Long value2) {
            addCriterion("create_at between", value1, value2, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtNotBetween(Long value1, Long value2) {
            addCriterion("create_at not between", value1, value2, "createAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtIsNull() {
            addCriterion("last_update_at is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtIsNotNull() {
            addCriterion("last_update_at is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtEqualTo(Long value) {
            addCriterion("last_update_at =", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtNotEqualTo(Long value) {
            addCriterion("last_update_at <>", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtGreaterThan(Long value) {
            addCriterion("last_update_at >", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtGreaterThanOrEqualTo(Long value) {
            addCriterion("last_update_at >=", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtLessThan(Long value) {
            addCriterion("last_update_at <", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtLessThanOrEqualTo(Long value) {
            addCriterion("last_update_at <=", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtIn(List<Long> values) {
            addCriterion("last_update_at in", values, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtNotIn(List<Long> values) {
            addCriterion("last_update_at not in", values, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtBetween(Long value1, Long value2) {
            addCriterion("last_update_at between", value1, value2, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtNotBetween(Long value1, Long value2) {
            addCriterion("last_update_at not between", value1, value2, "lastUpdateAt");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}